import React, { Component } from 'react'
import {withRouter} from 'react-router-dom'
 class Index extends Component {
  handleClick=(params) => {
    this.props.history.push('searchCenter')
  }
  
  render() {
    return (
      <div className="search-input" onClick={this.handleClick}>
        搜索
      </div>
    )
  }
}
export default withRouter(Index)